//
//  WJUser.h
//  Wujin
//
//  Created by 东 on 16/12/10.
//  Copyright © 2016年 dong. All rights reserved.
//

#import <Foundation/Foundation.h>

@class WJUser;

typedef void(^WJUserResult) (WJUser *user, NSError *error);


@interface WJUser : NSObject

@property (nonatomic , copy) NSString              * phone;
@property (nonatomic , copy) NSString              * address;
@property (nonatomic , copy) NSString              * pre_phone;
@property (nonatomic , copy) NSString              * qq;
@property (nonatomic , copy) NSString              * wechat;
@property (nonatomic , copy) NSString              * user_id;
@property (nonatomic , copy) NSString              * name;

@property (nonatomic , assign) BOOL              login;


+ (instancetype)user;

+ (void)loginWithPhone:(NSString *)phone password:(NSString *)password result:(WJUserResult)result;		//普通登录

- (instancetype)initWithParam:(NSDictionary *)param;			//根据资料初始化用户对象


@end
